/**
 * @Auto generation code
 * Product Controller
 */
import request from '../common/request/request.js'

/**
 * 
 * path, params, loading
 * 获取产品列表 - GET
 */
export const getProductListByCity = async ({// query params
		city   // 城市CODE  
	
}, loading) => {
	return await request.get('/customer/product', {
		 city, 
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * 获取产品的特殊属性列表 - POST
 */
export const getAttributeSpecial = async (loading) => {
	return await request.post('/customer/product/attr_special', {
		
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * 获取产品详情 - GET
 */
export const getProductDetail = async (, {// path params
		id   // 产品主键ID  
	
}, {// query params
		city   // 城市code  
	
}, loading) => {
	return await request.get('/customer/product/${id}', {
		 city, 
	}, loading)
}


/**
 * 
 * path, params, loading
 * 获取今日推荐菜品列表 - GET
 */
export const getTodayCommodityRecommend = async (, {// path params
		id   // id ,必填 
	
}, loading) => {
	return await request.get('/customer/product/${id}/commodity-recommend', {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * 获取产品的服务介绍页面内容 - GET
 */
export const getProductIntroduce = async (, {// path params
		id   // 服务产品ID  
	
}, loading) => {
	return await request.get('/customer/serviceIntroduce/${id}', {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * getDistributorProducts - GET
 */
export const getDistributorProducts = async ({// query params
		code   // code ,必填 
	
}, loading) => {
	return await request.get('/customer/unionproducts', {
		 code, 
	}, loading)
}

